#第一问
class MyMath:
    @staticmethod
    def add(a, b):
        return a + b

    def sub(a, b):
        return a - b

    def mul(a, b):
        return a * b

    def div(a, b):
        return a / b

    def ediv(a, b):
        return a // b

    def rem(a, b):
        return a % b

    def sqrt(a, b):
        return float(a ** (1 / 2))

print(MyMath.ediv(10,5))

#第二问
class Cat:
    cute_cat = True
    __mycat = {"David": 2}
    def __init__(self, name, age):

        self. name = name
        self. __age = age

    @classmethod
    def __new__(cls, *args, **kwargs):
        print("猫咪真可爱")
        return super().__new__(cls)

    def __str__(self):
        return "名字是:%s , 年龄是:%d" % (self. name, self. __age)



print(Cat. _Cat__mycat)
tom = Cat("汤姆", 30)
print(tom)